package com.nine.sensitive.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.nine.sensitive.anno.Desensitive;
import com.nine.sensitive.enums.DesensitiveType;
import lombok.Data;

import java.util.Date;

@Data
public class UserVo {

    private Long id;
    private String name;

    // 去掉密码

    @Desensitive(type = DesensitiveType.MOBILE)
    private String mobile;
    @Desensitive(type = DesensitiveType.IDCARD)
    private String idcard;
    @Desensitive(type = DesensitiveType.BANKCARD)
    private String bankcard;
    private Integer age;
    private Integer gender;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date birthDate;
    private Date operatetime;

    private String remark;

}
